package com.dao;

import com.pojo.Account;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

/**
 * 代理
 */
public class AccountDaoImpl implements AccountDao {
    private SqlSessionTemplate sqlSession;

    public void setSqlSession(SqlSessionTemplate sqlSession) {
        this.sqlSession = sqlSession;
    }

    public List<Account> selectAccount() {
        AccountDao accountDao = sqlSession.getMapper(AccountDao.class);
        return accountDao.selectAccount();
    }
}
